package net.telesing.tcmc.back.model;

import java.sql.Date;

import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Readonly;
import org.nutz.dao.entity.annotation.Table;
import org.nutz.dao.entity.annotation.View;

import net.telesing.tcmc.common.BaseModel;

/**
 * Created by bys on 2015/11/3.
 */
@Table("tsc_section")
@View("vsc_section")
public class SectionModel extends BaseModel
{
    @Column("OID")
    private long orgId;

    @Column("ORG_NAME")
    @Readonly
    private String orgName;
    @Column("ORG_CODE")
    @Readonly
    private String orgCode;

    @Column
    private String name;

    @Column("VALID_DATE")
    private Date validDate;

    @Column("STATUS")
    private int state;

    @Column("STATE_NAME")
    @Readonly
    private String stateName;

    @Column
    private String source;  // 来源

    @Column("SKIP_PATH")
    private String skipPath;  // 跳转

    @Column
    @Readonly
    private long uid;

    public long getOrgId()
    {
        return orgId;
    }

    public void setOrgId(long orgId)
    {
        this.orgId = orgId;
    }

    public String getOrgName()
    {
        return orgName;
    }

    public void setOrgName(String orgName)
    {
        this.orgName = orgName;
    }

    public String getName()
    {
        return name;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public Date getValidDate()
    {
        return validDate;
    }

    public void setValidDate(Date validDate)
    {
        this.validDate = validDate;
    }

    public int getState()
    {
        return state;
    }

    public void setState(int state)
    {
        this.state = state;
    }

    public String getStateName()
    {
        return stateName;
    }

    public void setStateName(String stateName)
    {
        this.stateName = stateName;
    }

    public String getOrgCode()
    {
        return orgCode;
    }

    public void setOrgCode(String orgCode)
    {
        this.orgCode = orgCode;
    }

    public long getUid()
    {
        return uid;
    }

    public void setUid(long uid)
    {
        this.uid = uid;
    }

    public String getSource()
    {
        return source;
    }

    public void setSource(String source)
    {
        this.source = source;
    }

    public String getSkipPath()
    {
        return skipPath;
    }

    public void setSkipPath(String skipPath)
    {
        this.skipPath = skipPath;
    }

}
